package com.dkm.ec.product.repository.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.ec.product.domain.ProdSeo;
import com.dkm.ec.product.persistence.dao.ProdSeoQueryDao;
import com.dkm.ec.product.persistence.entity.ProdSeoPo;
import com.dkm.ec.product.repository.ProdSeoRepository;

/**
 * 对象功能:产品SEO信息 Repository接口的实现类
 * 开发公司:SKG.COM
 * 开发人员:Yuki
 * 创建时间:2014-12-24 09:08:17
 */
@Repository
public class ProdSeoRepositoryImpl extends AbstractRepository<String, ProdSeoPo,ProdSeo> implements ProdSeoRepository{
	  
	@Resource
	private  ProdSeoQueryDao prodSeoQueryDao;

	public ProdSeo newInstance() {
		ProdSeoPo po = new ProdSeoPo();
		ProdSeo prodSeo = SpringHelper.getBean(ProdSeo.class);
		prodSeo.setData(po);
		return prodSeo;
	}

	public ProdSeo newInstance(ProdSeoPo po) {
		ProdSeo prodSeo = SpringHelper.getBean(ProdSeo.class);
		prodSeo.setData(po);
		return prodSeo;
	} 
	
	@Override
	protected IQueryDao<String, ProdSeoPo> getQueryDao() {
		return prodSeoQueryDao;
	}
	
}
